package cn.topcodes.tcsf.admin.web.controller.impl;

import cn.topcodes.tcsf.admin.commons.api.domain.ApiResponseEntity;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Unicorn
 * @date 2017/5/15
 */
@Controller
@RequestMapping("/admin/test/websocket")
public class WebSocketTestController {

//    @Autowired
//    private AdminSessionEndPoint adminSessionEndPoint;

    @ResponseBody
    @RequestMapping(value = "admin-session-ws",method = RequestMethod.POST)
    public ApiResponseEntity testAdminSessionWs(@RequestParam Long userId, @RequestParam String text) {
//        adminSessionEndPoint.sendText(userId, text);
        return ApiResponseEntity.buildOK();
    }
}
